package com.handz.test.demo;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 应用模块名称<p>
 *
 * @author hepeiyun
 * @since 2019/11/5
 */
@RestController
@RequestMapping("/demo")
@Slf4j
public class DemoController {


    @RequestMapping("/demo1")
    public String demo1(){
        log.info("demo1 running!");
        return "demo1";
    }

    @RequestMapping("/demo2")
    public String demo2(){
        log.info("demo2 running!");
        return "demo2";
    }

    @RequestMapping("/demo3")
    public String demo3() {
        log.info("demo3 running!");
        return "demo3";
    }
}
